package cn.iocoder.yudao.module.pi.controller.admin.pipline.exec.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 部署执行分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ExecPageReqVO extends PageParam {

    @Schema(description = "部署ID", example = "14178")
    private Long deployId;

    @Schema(description = "环境")
    private String env;

    @Schema(description = "区域")
    private String region;

    @Schema(description = "项目ID", example = "5312")
    private String projectId;

    @Schema(description = "流水线ID", example = "24136")
    private String piplineId;

    @Schema(description = "流水行运行ID", example = "31070")
    private String piplineRunId;

    @Schema(description = "发包版本")
    private String tag;

    @Schema(description = "执行批次")
    private String batchId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}